<?php

session_start();

if(!empty($_SESSION['id']))
 header("Location:navigation.html");
//if logout then destroy the session and redirect the user
if(isset($_GET['logout']))
{
  session_destroy();
  header("Location:login.html");
}
//echo " <a href='secure.php?logout'><b>Logout<b></a> ";
//echo " <div align='center'>You Are inside secured Page</a> ";
?>